package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {


    Page<Goods> pageList(@Param("goodsPage") Page<Goods> goodsPage,@Param("number") String number);

    @Update("update goods set status = 1 where id = #{id}")
    Integer updateStatus(Integer id);

    @Update("update goods set status = 2 where id = #{id}")
    Integer pussStatus(Integer id);
}
